﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace ConsoleApp1.Models.DB {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "t_freeVoltServicing", DisableSyncStructure = true)]
	public partial class TFreeVoltServicing {

		/// <summary>
		/// 主键唯一Id自增
		/// </summary>
		[JsonProperty, Column(IsPrimary = true, IsIdentity = true)]
		public long Id { get; set; }

		/// <summary>
		/// A相电压
		/// </summary>
		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? AVolt { get; set; }

		/// <summary>
		/// 电池电压
		/// </summary>
		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? BatteryVolt { get; set; }

		/// <summary>
		/// B相电压
		/// </summary>
		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? BVolt { get; set; }

		/// <summary>
		/// CPUID
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string CPUID { get; set; }

		/// <summary>
		/// 录入时间
		/// </summary>
		[JsonProperty]
		public DateTime? CreateTime { get; set; }

		/// <summary>
		/// C相电压
		/// </summary>
		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? CVolt { get; set; }

		/// <summary>
		/// 设备Id十进制形式
		/// </summary>
		[JsonProperty, Column(Name = "deviceId")]
		public long? DeviceId { get; set; }

		/// <summary>
		/// 信号强度
		/// </summary>
		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? PRS { get; set; }

		/// <summary>
		/// 预留1
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string Remark1 { get; set; }

		/// <summary>
		/// 预留2
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string Remark2 { get; set; }

		/// <summary>
		/// 软件版本
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string SoftVersion { get; set; }

		[JsonProperty, Column(StringLength = -2)]
		public string TerminalId { get; set; }

		/// <summary>
		/// 采集时间
		/// </summary>
		[JsonProperty]
		public DateTime? Time { get; set; }

		/// <summary>
		/// 总电压
		/// </summary>
		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? TVolt { get; set; }

	}

}
